export const routes = [
        {
			path: '/', 
			redirect: '/dashboard'
		},
        {
            path: '/dashboard',
            name: 'dashboard',
            component: () => import('_c/tabbar/TabBar.vue'),
            children: [
                {
					path: '/dashboard', 
					redirect: '/dashboard/home'
				},
                {
					path: 'home', 
					name: 'home', 
					component: () => import('_v/home/Home.vue'), 
					// meta: {keepAlive: true}
				},
                {
					path: 'community',
					name: 'community',
					meta:{
						"active":3,
						"needLogin":true
					},
					component: () => import('_v/community/Community.vue')
				}, {
					path: 'my-music', 
					name: 'my-music', 
					meta:{
						"active":3,
						"needLogin":true
					},
					component: () => import('_v/my-music/My-music.vue'), 
				},
				{
					path: 'mine', 
					name: 'mine', 
					meta:{
						"active":3,
						"needLogin":true
					},
					component: () => import('_v/mine/Mine.vue'), 
				}
            ]
        },
		{
			path:'/search',
			name:'search',
			component:()=>import('_v/commodity/Search.vue')
		},
		{
			path:'/login',
			name:'login',
			component: () => import('_v/login/Login.vue')
		 },
		 {
		 	path:'/regist',
		 	name:'regist',
		 	component: () => import('_v/regist/Regist.vue')
		  },
		  {
			path:'/forgetpwd',
			name:'forgetpwd',
			component: () => import('_v/forgetpwd/Forgetpwd.vue')
		  },
		{
            path: '/403',
            name: 'url403',
            component: () => import('_v/403.vue')
        },
		{
            path: '/404',
            name: 'url404',
            component: () => import('_v/404.vue')
        },
		{
			path:"/:pathMatch(.*)",
			redirect:"/404"
		}
    ]